
	<div class="infobox helvetica" style="margin:25px 5px">
	<em><?=$this->dbn?></em><br /><br />
	Association:
	<div align="right">
		<? if($this->dbn == 'root') echo 'SMUOI';
		elseif((strlen($this->dbn) == 8)&&($d = Domain($this->dbn))) echo $d->NAME;
		else echo 'none'; 
	?>
	</div>
	
	<br />
	Database Resource:
	<div align="right">
		<?
			if(!$this->dtb->name) echo 'none';
			else{
				$db = proxy($this->dbn);
				$dbname = $this->dtb->name;
				echo '<strong>'.$dbname.'</strong><br />';
				putenv('SMUOI_SUPPRESS_MYSQL_FATALITIES=1');
				error_reporting(0);
				$al = $db->open();
				if(!$al->open()){
					echo '<br /><div style="padding:3px; border:1px dashed #900; color:#900; text-align:left">'.$al->last_error.'</div>';
				}else{
					$q = $al->execute('SHOW TABLES;');
					echo count($q).' tables<br />';
				
					$q = $al->execute("SELECT table_schema '$dbname',
					sum( data_length + index_length ) 'size'
					FROM information_schema.TABLES
					GROUP BY table_schema ;");
					echo bytesize($q[1]['size']) . '<br />';
				}
			}
		?>
	</div>
	
	<br />
	<br />
	Test Configuration:
	<div align="right">
		<br />
		<input type="button" value="Test ..." onclick="Database.test()" />
	</div>
	<br />
	Commit Configuration:
	<div align="right">
		<br />
		<input type="button" value="Commit" id="changesbutton" onclick="Database.save()" disabled="disabled" />
	</div>
	</div>